package org.eclipse.ea.requisit.manager.parser.visitor.util;

import java.util.ArrayList;
import java.util.List;

public class NamedLineClass {
	
	String className;
	int lineDeclaration;
	List<NamedLineMethod> methods;
	
	public NamedLineClass(String nameClass, int lineDeclaration) {
		
		super();
		
		this.className = nameClass;
		this.lineDeclaration = lineDeclaration;
		
		this.methods = new ArrayList<NamedLineMethod>();
	}
	
	public void addMethod(String name, int line){
		this.methods.add(new NamedLineMethod(name, line));
	}

	public String getClassName() {
		return className;
	}

	public void setNameClass(String nameClass) {
		this.className = nameClass;
	}

	public int getLineDeclaration() {
		return lineDeclaration;
	}

	public void setLineDeclaration(int lineDeclaration) {
		this.lineDeclaration = lineDeclaration;
	}

	public List<NamedLineMethod> getMethods() {
		return methods;
	}
}
